import cn.vonce.sql.enumerate.DbType;
import cn.vonce.sqlbean.example.model.BaseEntity;
import cn.vonce.supercode.core.config.GenerateConfig;
import cn.vonce.supercode.core.helper.GenerateHelper;


/**
 * @author Jovi
 * @email imjovi@qq.com
 * @date 2023/6/21 16:04
 */
public class GenCode {

    public static void main(String[] args) {
        //生成配置
        GenerateConfig config = new GenerateConfig();
        config.setAuthor("Jovi");
        config.setEmail("imjovi@qq.com");
        config.setBasePackage("cn.vonce.sqlbean.example");
        //设置实体类继承的父类
        config.setBaseClass(BaseEntity.class);
        config.setPrefix("t_");
//        config.setMultiProject(true);
        //代码生成
        GenerateHelper.build(config, DbType.MySQL, "cn.vonce.sqlbean.example.model.entity");
    }

}
